const fs = require('fs');
const path = require('path');
var tools = require('../../../libs/tools');
var config = require(tools.rootPath + 'config');
var { connection, pool, model } = require(tools.rootPath + 'libs/model');

var controller = require(tools.rootPath + 'libs/controller.js');
var form = require(tools.rootPath + 'libs/form.js');

module.exports = class extends controller {
    constructor() {
        super();
    }
    index(req, res) {
        res.render(req.TPL, { form });
    }
    upload(req, res) {
        res.json({
            code: 0,
            msg: 'success',
            url: 'https://js.tuguaishou.com/new-index/logo-20200623-black-1x.png?v=7',
        });
    }
}